public class ACPowerSource {
    private int voltage = 220;

    public int outPutVoltage() {
        System.out.println("输出电压=" + voltage + "V");
        return voltage;
    }

    public int getVoltage() {
        return voltage;
    }

    public void setVoltage(int voltage) {
        this.voltage = voltage;
    }
}